home *** CD-ROM | disk | FTP | other *** search
GW-BASIC | 1987-05-08 | 756 b | 18 lines |
- 10 CLS
- 20 KEY OFF
- 30 COLOR 7,0
- 40 WIDTH 80
- 50 DEF SEG = 0: POKE 1050,PEEK(1052)
- 60 LOCATE 1,18:PRINT "H E X I D E C I M A L/ O C T A L T U T O R I A L"
- 70 LOCATE 5,2:PRINT " This section, will guide you through the HEX/OCTAL from DECIMAL conversions."
- 80 LOCATE 7,2:PRINT " Simply enter a D E C I M A L number within the appropriate range specified,"
- 90 LOCATE 8,2:PRINT " and press the <RETURN> key."
- 100 LOCATE 9,2:PRINT " Two resultant values will return showing the conversions..."
- 110 LOCATE 11,2:PRINT "EXAMPLE:"
- 120 LOCATE 13,20:PRINT "To find the HEXIDECIMAL AND OCTAL VALUES for DECIMAL value '67.8',"
- 130 LOCATE 14,20:PRINT "Enter 67.8 and press the <RETURN> key, the conversions will appear below that..."
- 140 LOCATE 20,2:PRINT "Press the S P A C E B A R to return to disk tutorial..."
- 150 S$ =INKEY$:IF S$ =" " THEN CLS:CLEAR:CHAIN"a"
- 160 GOTO 150
- 170 END
-